export const guestData = [
    {
        path: '/guest',
        component: 'Layout',
        redirect: 'noRedirect',
        hidden: false,
        alwaysShow: false,
        children: [{
            path: 'recordList',
            component: 'guest/recordList',
            name: 'guestRecordList',
            meta: {
                title: '我的记录',
                icon: 'record',
                affix: true
            }
        }]
    },
    {
        path: '/guest',
        component: 'Layout',
        redirect: 'noRedirect',
        hidden: false,
        alwaysShow: false,
        children: [{
            path: 'add',
            component: 'guest/add',
            name: 'guestAddRecord',
            meta: {
                title: '添加记录',
                icon: 'addrecord',
                affix: true
            }
        }]
    }
]

export const studentData = [
    {
        path: '/studentInfo',
        component: 'Layout',
        redirect: 'noRedirect',
        hidden: false,
        children: [
            {
                path: '',
                meta: { title: '学生信息', icon: 'student' },
                component: 'student/student/info',
                name: 'studentInfo'
            }
        ]
    },
    {
        path: '/dorm',
        component: 'Layout',
        redirect: 'noRedirect',
        hidden: false,
        alwaysShow: false,
        meta: { title: '宿舍管理', icon: "dormManagement" },
        children: [{
            path: 'index',
            component: 'student/dorm/index',
            name: 'studentDormInfo',
            meta: {
                title: '宿舍信息',
                icon: 'record'
            }
        },
            // {
            // path: 'exchange',
            // component: 'student/dorm/exchangeDorm',
            // name: 'studentExchangeDorm',
            // meta: {
            //     title: '申请换宿',
            //     icon: 'addrecord'
            // }
            // }
        ]
    },
    {
        path: '/property',
        component: 'Layout',
        redirect: 'noRedirect',
        hidden: false,
        alwaysShow: false,
        meta: { title: '财产管理', icon: "property" },
        children: [{
            path: 'index',
            component: 'student/property/index',
            name: 'studentPropertyInfo',
            meta: {
                title: '财产信息',
                icon: 'record'
            }
        }, {
            path: 'repair',
            component: 'student/property/repair',
            name: 'studentRepairProperty',
            meta: {
                title: '申请维修',
                icon: 'addrecord'
            }
        }]
    },
    {
        path: '/fare',
        component: 'Layout',
        redirect: 'noRedirect',
        hidden: false,
        alwaysShow: false,
        meta: { title: '水电费管理', icon: "fare" },
        children: [{
            path: 'index',
            component: 'student/fare/index',
            name: 'studentFareInfo',
            meta: {
                title: '费用信息',
                icon: 'record'
            }
        }, {
            path: 'pay',
            component: 'student/fare/pay',
            name: 'studentFarePay',
            meta: {
                title: '缴费信息',
                icon: 'addrecord'
            }
        }]
    },
    {
        path: '/guestInfo',
        component: 'Layout',
        redirect: 'noRedirect',
        hidden: false,
        children: [
            {
                path: '',
                meta: { title: '访客信息', icon: 'guest' },
                component: 'student/guest/index',
                name: 'studentGuestInfo'
            }
        ]
    }
]

export const dormManagementData = [
    {
        path: '/property',
        component: 'Layout',
        redirect: 'noRedirect',
        hidden: false,
        children: [
            {
                path: '',
                meta: { title: '宿舍财产', icon: 'property' },
                component: 'dormManagement/property/index',
                name: 'dormManagementDormInfo'
            }
        ]
    },
    {
        path: '/fare',
        component: 'Layout',
        redirect: 'noRedirect',
        hidden: false,
        children: [
            {
                path: '',
                meta: { title: '水电费信息', icon: 'waterelectricity' },
                component: 'dormManagement/fare/index',
                name: 'dormManagementFareInfo'
            }
        ]
    },
    {
        path: '/studentLodging',
        component: 'Layout',
        redirect: 'noRedirect',
        hidden: false,
        children: [
            {
                path: '',
                meta: { title: '学生住宿信息', icon: 'lodging' },
                component: 'dormManagement/studentLodging/index',
                name: 'dormManagementStudentLodging'
            }
        ]
    }
]

export const plumberData = [
    {
        path: '/repair',
        component: 'Layout',
        redirect: 'noRedirect',
        hidden: false,
        children: [
            {
                path: '',
                meta: { title: '维修信息', icon: 'repair' },
                component: 'plumber/property/index',
                name: 'plumberPropertyInfo'
            }
        ]
    }, {
        path: '/fare',
        component: 'Layout',
        redirect: 'noRedirect',
        hidden: false,
        alwaysShow: false,
        meta: { title: '水电费管理', icon: "wlmanagement" },
        children: [
            {
                path: '',
                meta: { title: '水电费信息', icon: 'waterelectricity' },
                component: 'plumber/fare/index',
                name: 'plumberFareInfo'
            }, {
                path: 'add',
                meta: { title: '添加水电费', icon: 'addWE' },
                component: 'plumber/fare/add',
                name: 'plumberAddFareInfo'
            }
        ]
    }
]

export const schoolManagementData = []